package com.cc.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

public class Role implements Serializable {
    @Serial
    private static final long serialVersionUID = 3452477693405197971L;
    //id
    private int id;
    //角色类
    private String roleName;

    private List<User> userList;

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", roleName='" + roleName + '\'' +
                '}';
    }
}
